3.3.95 \(\int \frac {d+e x}{x^2 (a+c x^2)^2} \, dx\)

Optimal. Leaf size=87 \[ -\frac {3 \sqrt {c} d \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{5/2}}-\frac {e \log \left (a+c x^2\right )}{2 a^2}-\frac {3 d}{2 a^2 x}+\frac {e \log (x)}{a^2}+\frac {d+e x}{2 a x \left (a+c x^2\right )} \]

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {823, 801, 635, 205, 260} \begin {gather*} -\frac {3 \sqrt {c} d \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{5/2}}-\frac {e \log \left (a+c x^2\right )}{2 a^2}-\frac {3 d}{2 a^2 x}+\frac {e \log (x)}{a^2}+\frac {d+e x}{2 a x \left (a+c x^2\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(d + e*x)/(x^2*(a + c*x^2)^2),x]

[Out]

(-3*d)/(2*a^2*x) + (d + e*x)/(2*a*x*(a + c*x^2)) - (3*Sqrt[c]*d*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(5/2)) + (e*
Log[x])/a^2 - (e*Log[a + c*x^2])/(2*a^2)

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 260

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rule 635

Int[((d_) + (e_.)*(x_))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Dist[d, Int[1/(a + c*x^2), x], x] + Dist[e, Int[x/
(a + c*x^2), x], x] /; FreeQ[{a, c, d, e}, x] &&  !NiceSqrtQ[-(a*c)]

Rule 801

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Int[ExpandIntegrand[(
(d + e*x)^m*(f + g*x))/(a + c*x^2), x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[c*d^2 + a*e^2, 0] && Integer
Q[m]

Rule 823

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> -Simp[((d + e*x)^(
m + 1)*(f*a*c*e - a*g*c*d + c*(c*d*f + a*e*g)*x)*(a + c*x^2)^(p + 1))/(2*a*c*(p + 1)*(c*d^2 + a*e^2)), x] + Di
st[1/(2*a*c*(p + 1)*(c*d^2 + a*e^2)), Int[(d + e*x)^m*(a + c*x^2)^(p + 1)*Simp[f*(c^2*d^2*(2*p + 3) + a*c*e^2*
(m + 2*p + 3)) - a*c*d*e*g*m + c*e*(c*d*f + a*e*g)*(m + 2*p + 4)*x, x], x], x] /; FreeQ[{a, c, d, e, f, g}, x]
 && NeQ[c*d^2 + a*e^2, 0] && LtQ[p, -1] && (IntegerQ[m] || IntegerQ[p] || IntegersQ[2*m, 2*p])

Rubi steps

\begin {align*} \int \frac {d+e x}{x^2 \left (a+c x^2\right )^2} \, dx &=\frac {d+e x}{2 a x \left (a+c x^2\right )}-\frac {\int \frac {-3 a c d-2 a c e x}{x^2 \left (a+c x^2\right )} \, dx}{2 a^2 c}\\ &=\frac {d+e x}{2 a x \left (a+c x^2\right )}-\frac {\int \left (-\frac {3 c d}{x^2}-\frac {2 c e}{x}+\frac {c^2 (3 d+2 e x)}{a+c x^2}\right ) \, dx}{2 a^2 c}\\ &=-\frac {3 d}{2 a^2 x}+\frac {d+e x}{2 a x \left (a+c x^2\right )}+\frac {e \log (x)}{a^2}-\frac {c \int \frac {3 d+2 e x}{a+c x^2} \, dx}{2 a^2}\\ &=-\frac {3 d}{2 a^2 x}+\frac {d+e x}{2 a x \left (a+c x^2\right )}+\frac {e \log (x)}{a^2}-\frac {(3 c d) \int \frac {1}{a+c x^2} \, dx}{2 a^2}-\frac {(c e) \int \frac {x}{a+c x^2} \, dx}{a^2}\\ &=-\frac {3 d}{2 a^2 x}+\frac {d+e x}{2 a x \left (a+c x^2\right )}-\frac {3 \sqrt {c} d \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{5/2}}+\frac {e \log (x)}{a^2}-\frac {e \log \left (a+c x^2\right )}{2 a^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.12, size = 81, normalized size = 0.93 \begin {gather*} -\frac {3 \sqrt {c} d \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 a^{5/2}}-\frac {\frac {2 a d-a e x+3 c d x^2}{a x+c x^3}+e \log \left (a+c x^2\right )-2 e \log (x)}{2 a^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x)/(x^2*(a + c*x^2)^2),x]

[Out]

(-3*Sqrt[c]*d*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*a^(5/2)) - ((2*a*d - a*e*x + 3*c*d*x^2)/(a*x + c*x^3) - 2*e*Log[
x] + e*Log[a + c*x^2])/(2*a^2)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {d+e x}{x^2 \left (a+c x^2\right )^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(d + e*x)/(x^2*(a + c*x^2)^2),x]

[Out]

IntegrateAlgebraic[(d + e*x)/(x^2*(a + c*x^2)^2), x]

________________________________________________________________________________________

fricas [A]  time = 0.43, size = 225, normalized size = 2.59 \begin {gather*} \left [-\frac {6 \, c d x^{2} - 2 \, a e x - 3 \, {\left (c d x^{3} + a d x\right )} \sqrt {-\frac {c}{a}} \log \left (\frac {c x^{2} - 2 \, a x \sqrt {-\frac {c}{a}} - a}{c x^{2} + a}\right ) + 4 \, a d + 2 \, {\left (c e x^{3} + a e x\right )} \log \left (c x^{2} + a\right ) - 4 \, {\left (c e x^{3} + a e x\right )} \log \relax (x)}{4 \, {\left (a^{2} c x^{3} + a^{3} x\right )}}, -\frac {3 \, c d x^{2} - a e x + 3 \, {\left (c d x^{3} + a d x\right )} \sqrt {\frac {c}{a}} \arctan \left (x \sqrt {\frac {c}{a}}\right ) + 2 \, a d + {\left (c e x^{3} + a e x\right )} \log \left (c x^{2} + a\right ) - 2 \, {\left (c e x^{3} + a e x\right )} \log \relax (x)}{2 \, {\left (a^{2} c x^{3} + a^{3} x\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)/x^2/(c*x^2+a)^2,x, algorithm="fricas")

[Out]

[-1/4*(6*c*d*x^2 - 2*a*e*x - 3*(c*d*x^3 + a*d*x)*sqrt(-c/a)*log((c*x^2 - 2*a*x*sqrt(-c/a) - a)/(c*x^2 + a)) +
4*a*d + 2*(c*e*x^3 + a*e*x)*log(c*x^2 + a) - 4*(c*e*x^3 + a*e*x)*log(x))/(a^2*c*x^3 + a^3*x), -1/2*(3*c*d*x^2
- a*e*x + 3*(c*d*x^3 + a*d*x)*sqrt(c/a)*arctan(x*sqrt(c/a)) + 2*a*d + (c*e*x^3 + a*e*x)*log(c*x^2 + a) - 2*(c*
e*x^3 + a*e*x)*log(x))/(a^2*c*x^3 + a^3*x)]

________________________________________________________________________________________

giac [A]  time = 0.16, size = 80, normalized size = 0.92 \begin {gather*} -\frac {3 \, c d \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \, \sqrt {a c} a^{2}} - \frac {e \log \left (c x^{2} + a\right )}{2 \, a^{2}} + \frac {e \log \left ({\left | x \right |}\right )}{a^{2}} - \frac {3 \, c d x^{2} - a x e + 2 \, a d}{2 \, {\left (c x^{3} + a x\right )} a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)/x^2/(c*x^2+a)^2,x, algorithm="giac")

[Out]

-3/2*c*d*arctan(c*x/sqrt(a*c))/(sqrt(a*c)*a^2) - 1/2*e*log(c*x^2 + a)/a^2 + e*log(abs(x))/a^2 - 1/2*(3*c*d*x^2
 - a*x*e + 2*a*d)/((c*x^3 + a*x)*a^2)

________________________________________________________________________________________

maple [A]  time = 0.08, size = 85, normalized size = 0.98 \begin {gather*} -\frac {c d x}{2 \left (c \,x^{2}+a \right ) a^{2}}-\frac {3 c d \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \sqrt {a c}\, a^{2}}+\frac {e}{2 \left (c \,x^{2}+a \right ) a}+\frac {e \ln \relax (x )}{a^{2}}-\frac {e \ln \left (c \,x^{2}+a \right )}{2 a^{2}}-\frac {d}{a^{2} x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x+d)/x^2/(c*x^2+a)^2,x)

[Out]

-1/2*c/a^2/(c*x^2+a)*d*x+1/2/a/(c*x^2+a)*e-1/2*e*ln(c*x^2+a)/a^2-3/2*c/a^2*d/(a*c)^(1/2)*arctan(1/(a*c)^(1/2)*
c*x)+1/a^2*e*ln(x)-1/a^2*d/x

________________________________________________________________________________________

maxima [A]  time = 1.12, size = 78, normalized size = 0.90 \begin {gather*} -\frac {3 \, c d \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \, \sqrt {a c} a^{2}} - \frac {3 \, c d x^{2} - a e x + 2 \, a d}{2 \, {\left (a^{2} c x^{3} + a^{3} x\right )}} - \frac {e \log \left (c x^{2} + a\right )}{2 \, a^{2}} + \frac {e \log \relax (x)}{a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)/x^2/(c*x^2+a)^2,x, algorithm="maxima")

[Out]

-3/2*c*d*arctan(c*x/sqrt(a*c))/(sqrt(a*c)*a^2) - 1/2*(3*c*d*x^2 - a*e*x + 2*a*d)/(a^2*c*x^3 + a^3*x) - 1/2*e*l
og(c*x^2 + a)/a^2 + e*log(x)/a^2

________________________________________________________________________________________

mupad [B]  time = 1.22, size = 165, normalized size = 1.90 \begin {gather*} \frac {e\,\ln \relax (x)}{a^2}-\frac {\ln \left (2\,a^3\,e+d\,\sqrt {-a^5\,c}-2\,e\,x\,\sqrt {-a^5\,c}+a^2\,c\,d\,x\right )\,\left (2\,a^3\,e+3\,d\,\sqrt {-a^5\,c}\right )}{4\,a^5}-\frac {\ln \left (2\,a^3\,e-d\,\sqrt {-a^5\,c}+2\,e\,x\,\sqrt {-a^5\,c}+a^2\,c\,d\,x\right )\,\left (2\,a^3\,e-3\,d\,\sqrt {-a^5\,c}\right )}{4\,a^5}-\frac {\frac {d}{a}-\frac {e\,x}{2\,a}+\frac {3\,c\,d\,x^2}{2\,a^2}}{c\,x^3+a\,x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d + e*x)/(x^2*(a + c*x^2)^2),x)

[Out]

(e*log(x))/a^2 - (log(2*a^3*e + d*(-a^5*c)^(1/2) - 2*e*x*(-a^5*c)^(1/2) + a^2*c*d*x)*(2*a^3*e + 3*d*(-a^5*c)^(
1/2)))/(4*a^5) - (log(2*a^3*e - d*(-a^5*c)^(1/2) + 2*e*x*(-a^5*c)^(1/2) + a^2*c*d*x)*(2*a^3*e - 3*d*(-a^5*c)^(
1/2)))/(4*a^5) - (d/a - (e*x)/(2*a) + (3*c*d*x^2)/(2*a^2))/(a*x + c*x^3)

________________________________________________________________________________________

sympy [B]  time = 1.81, size = 389, normalized size = 4.47 \begin {gather*} \left (- \frac {e}{2 a^{2}} - \frac {3 d \sqrt {- a^{5} c}}{4 a^{5}}\right ) \log {\left (x + \frac {32 a^{6} e \left (- \frac {e}{2 a^{2}} - \frac {3 d \sqrt {- a^{5} c}}{4 a^{5}}\right )^{2} - 16 a^{4} e^{2} \left (- \frac {e}{2 a^{2}} - \frac {3 d \sqrt {- a^{5} c}}{4 a^{5}}\right ) - 12 a^{3} c d^{2} \left (- \frac {e}{2 a^{2}} - \frac {3 d \sqrt {- a^{5} c}}{4 a^{5}}\right ) - 16 a^{2} e^{3} + 12 a c d^{2} e}{36 a c d e^{2} + 9 c^{2} d^{3}} \right )} + \left (- \frac {e}{2 a^{2}} + \frac {3 d \sqrt {- a^{5} c}}{4 a^{5}}\right ) \log {\left (x + \frac {32 a^{6} e \left (- \frac {e}{2 a^{2}} + \frac {3 d \sqrt {- a^{5} c}}{4 a^{5}}\right )^{2} - 16 a^{4} e^{2} \left (- \frac {e}{2 a^{2}} + \frac {3 d \sqrt {- a^{5} c}}{4 a^{5}}\right ) - 12 a^{3} c d^{2} \left (- \frac {e}{2 a^{2}} + \frac {3 d \sqrt {- a^{5} c}}{4 a^{5}}\right ) - 16 a^{2} e^{3} + 12 a c d^{2} e}{36 a c d e^{2} + 9 c^{2} d^{3}} \right )} + \frac {- 2 a d + a e x - 3 c d x^{2}}{2 a^{3} x + 2 a^{2} c x^{3}} + \frac {e \log {\relax (x )}}{a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)/x**2/(c*x**2+a)**2,x)

[Out]

(-e/(2*a**2) - 3*d*sqrt(-a**5*c)/(4*a**5))*log(x + (32*a**6*e*(-e/(2*a**2) - 3*d*sqrt(-a**5*c)/(4*a**5))**2 -
16*a**4*e**2*(-e/(2*a**2) - 3*d*sqrt(-a**5*c)/(4*a**5)) - 12*a**3*c*d**2*(-e/(2*a**2) - 3*d*sqrt(-a**5*c)/(4*a
**5)) - 16*a**2*e**3 + 12*a*c*d**2*e)/(36*a*c*d*e**2 + 9*c**2*d**3)) + (-e/(2*a**2) + 3*d*sqrt(-a**5*c)/(4*a**
5))*log(x + (32*a**6*e*(-e/(2*a**2) + 3*d*sqrt(-a**5*c)/(4*a**5))**2 - 16*a**4*e**2*(-e/(2*a**2) + 3*d*sqrt(-a
**5*c)/(4*a**5)) - 12*a**3*c*d**2*(-e/(2*a**2) + 3*d*sqrt(-a**5*c)/(4*a**5)) - 16*a**2*e**3 + 12*a*c*d**2*e)/(
36*a*c*d*e**2 + 9*c**2*d**3)) + (-2*a*d + a*e*x - 3*c*d*x**2)/(2*a**3*x + 2*a**2*c*x**3) + e*log(x)/a**2

________________________________________________________________________________________